﻿using Andromeda.Base.Application.UI.Windows.Controls;
using Andromeda.Forge.DataSource.DB;

namespace ForgeIt.UserControls
{
    /// <summary>
    /// 
    /// </summary>
    public partial class FoDatasourceDbProjectUserControl : FO_UserControl
    {
        /// <summary>
        /// 
        /// </summary>
        public FoDatasourceDbProjectUserControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        public FODataSourceDBProject Record
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="record"></param>
        public void DataBind(FODataSourceDBProject record)
        {
            SuspendLayout();
            
            Record = record;
            
            globalBindingSource.DataSource = record;

            ResumeLayout();
        }

        private void changeConnStringButton_Click(object sender, System.EventArgs e)
        {
            // TODO: Implement forms

        }
    }
}
